package com.lq.ecoldchain.ui.mymileage.ranking

import android.databinding.DataBindingUtil
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.lq.ecoldchain.R
import com.lq.ecoldchain.databinding.LayoutMileageRankingItemBinding
import com.lq.ecoldchain.entity.MileageRankingBean

/*
*2019/1/18 0018  18:08
*function by lq
*/
class RankingAdapter(list:List<MileageRankingBean>):BaseQuickAdapter<MileageRankingBean,BaseViewHolder>(R.layout.layout_mileage_ranking_item,list){
    override fun convert(helper: BaseViewHolder, item: MileageRankingBean) {
        val binding = DataBindingUtil.bind<LayoutMileageRankingItemBinding>(helper.itemView)
        binding!!.bean = item
        binding.executePendingBindings()
    }

}